import Vue from "vue";
import VueRouter from "vue-router";
Vue.use(VueRouter);
let router = new VueRouter({
  // mode: 'history',
  scrollBehavior() {
    return {
      x: 0,
      y: 0,
    };
  },
  routes: [
    {
      path: "/dataTrend",
      name: "dataTrend",
      component: () => import("../views/dataTrend.vue"),
      meta: {
        needCatid: true,
      },
    },
    {
      path: "/",
      name: "dataEvaluationMonitoring",
      component: () => import("../views/dataEvaluationMonitoring.vue"),
      meta: {
        needCatid: true,
      },
    },
    {
      path:'/emconfig',
      name:'emconfig',
      component:() =>import('../views/EMConfig.vue'),
      meta:{
        needCatid:true
      }
    },
    {
      path:'/statistics',
      name:'statistics',
      component:() =>import('../views/statistics.vue'),
      meta:{
        needCatid:true
      }
    }
  ],
});
//router.beforeEach((to, from, next) => {
//  console.log(to)
//  console.log(from)
//  next();
//})
export default router;
